<?php
/**
 * Created by JetBrains PhpStorm.
 * User: zhouyang
 * Date: 13-9-15
 * Time: 下午4:31
 * To change this template use File | Settings | File Templates.
 */
class CommentsModel extends Model{
    //获取trend 列表<带分页>
    public function getCommentListByWhoopsFeedID($curr_page,$per_page,$filter = array()){
        return $this->dbreader()->getCommentListByWhoopsFeedID($curr_page,$per_page,$filter);
    }

    //获取首页推荐的最新10条数据
    public function getRecommendIndexList(){
        return $this->dbreader()->getRecommendIndexList();
    }

    public function getTopByCommentType($comment_type,$limit){
        return $this->dbreader()->getTopByCommentType($comment_type,$limit);
    }
}